/**
 *
 *
 */
package com.fw.timesheet.service;

import java.util.List;

import com.fw.timesheet.dao.ProjectTaskDAO;
import com.fw.timesheet.model.ProjectTask;

/**
 * @author sigit <br>
 * @version 1.0 <br>
 *          Application : timesheet <br>
 *          Copyright (c) fastwire-group 2012 <br>
 * <br>
 */
public class ProjectTaskService extends BaseService {

	private ProjectTaskDAO projectTaskDAO;

	public ProjectTaskDAO getProjectTaskDAO() {
		return projectTaskDAO;
	}

	public void setProjectTaskDAO(ProjectTaskDAO projectTaskDAO) {
		this.projectTaskDAO = projectTaskDAO;
		setDaoObject(projectTaskDAO);
	}


	public void delete(ProjectTask persistentInstance) {
		getProjectTaskDAO().delete(persistentInstance);
	}

	public ProjectTask findById(Long id) {
		return getProjectTaskDAO().findById(id);
	}

	public List<ProjectTask> findAll() {
		return getProjectTaskDAO().findAll();
	}
}
